/*
 * Copyright (C) 2004, Velocityme Partnership
 * MenuDTO.java
 *
 * Created on 08 December 2004, 07:34
 */

package com.velocityme.www.dto;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

/**
 *
 * @author  Robert
 */
public class MenuDTO implements java.io.Serializable {
    
    private List m_menus = new ArrayList();
    
    public class ItemList implements java.io.Serializable {
        private String m_menuName;
        private List m_items;
        
        public ItemList(String p_menuName, List p_items) {
            m_menuName = p_menuName;
            m_items = p_items;
        }
        
        public String getMenuName() {
            return m_menuName;
        }
        
        public List getItemList() {
            return m_items;
        }
    }
    
    /** Creates a new instance of MenuDTO */
    public MenuDTO() {
    }
    
    public void addMenu(String p_menuName, List p_items) {
        m_menus.add(new ItemList(p_menuName, p_items));
    }
    
    public List getMenus() {
        return m_menus;
    }
    
}
